package com.ruoyi.job.service.impl;

import com.alibaba.fastjson.JSON;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.datasource.annotation.Slave;
import com.ruoyi.job.domain.OaPerson;
import com.ruoyi.job.mapper.OaUserMapper;
import com.ruoyi.job.remote.FeignUserService;
import com.ruoyi.job.service.OaUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wangsr
 * @date 2021-12-30 21:10
 * @description
 */
@Service
public class OaUserServiceImpl implements OaUserService {
    @Autowired
    private OaUserMapper oaUserMapper;

    @Override
    @Slave
    public List<OaPerson> selectAllUser() {
        List<OaPerson> oaPeople = oaUserMapper.selectUserList();
        return oaPeople;
    }
}
